﻿using H2.NET.Common;
using H2.NET.Data.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace H2.NET.Web.Pages.SMD
{
    public partial class DownloadList : System.Web.UI.Page
    {
        public List<H2.NET.Business.t_Attachment> attList = new List<Business.t_Attachment>();
        protected void Page_Load(object sender, EventArgs e)
        {
            string process = AksRequest.GetQueryString("process");
            int incident = AksRequest.GetQueryInt("incident");
            Expression exp = new Expression();
            exp &= H2.NET.Business.t_Attachment.process == process;
            exp &= H2.NET.Business.t_Attachment.incident == incident;
            exp &= H2.NET.Business.t_Attachment.status == 1;

            attList = (List<H2.NET.Business.t_Attachment>)exp.List<H2.NET.Business.t_Attachment>(Storage.Context1, new Region(0, 100), H2.NET.Business.t_Attachment.time.Asc);
        }
    }
}